package com.example.aicooking.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("refrigerator_foods")
public class RefrigeratorFood {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("food_name")
    private String foodName;

    @TableField("food_image_url")
    private String foodImageUrl;

    @TableField("official_room_days")
    private BigDecimal officialRoomDays;

    @TableField("official_low_days")
    private Integer officialLowDays;

    @TableField("stored_hours")
    private Integer storedHours;

    @TableField("storage_time")
    private LocalDateTime storageTime;

    @TableField("status")
    private Integer status;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}
